<?php
include ("./src/jpgraph.php");
include ("./src/jpgraph_bar.php");
$datay=array(323,1895,1394,1871,2129,2931,3445,2591,2499,3020,3804,3451,3400,3408,2313,2527,2325,1467,1544,1929,1775,2516,2694,3893,5299,3867,5351,5529,6682,5754,5317,5226);

$graph = new Graph(900,600,"auto");    
$graph->SetScale("textlin");
$graph->SetShadow();

$datax = array("V","Cm(l)","Cm(m)","Cm(u)","O(l)","O(m)","O(u)","S(l)","S(m)","S(u)","D(l)","D(m)","D(u)","CMs","CPn","P(l)","P(u)","Tr(l)","Tr(m)","Tr(u)","J(l)","J(m)","J(u)","K(l)","K(u)","Pg(Pal)","Pg(Eo)","Pg(Oli)","Ng(Mio)","Ng(Pli)","Ng(Plei)","Ng(Re)");
$graph->xaxis->SetTickLabels($datax);
$graph->xaxis->SetLabelAngle(90);

$graph->img->SetMargin(40,30,20,80);
$bplot = new BarPlot($datay);
$bplot->SetFillColor('blue');
$bplot->value->Show();
$graph->Add($bplot);
$graph->title->Set("Generic Diversity");
$graph->xaxis->title->Set("Stage Interval");
$graph->xaxis->title->SetMargin(40);
$graph->yaxis->title->Set("Number of Genera");
$graph->title->SetFont(FF_FONT1,FS_BOLD,8);
$graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD);
$graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD);
$graph->Stroke();
?>